package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;

public interface Roleservice {


    void add(Integer[] mids, Integer[] pids, Role role);


    List<Permission> findAllp();

    List<Menu> findAllm();

    PageResult findByPage(QueryPageBean queryPageBean);

    void delById(Integer id);

    List<Integer> findmById(Integer id);

    List<Integer> findpById(Integer id);

    Role findById(Integer id);

    void edit(Integer[] mids, Integer[] pids, Role role);

    List<Role> findAll();
}
